#include<DynamicArray.h>
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>


int main()
{
    DArray *a= InitDArry(10);

    InsertTail(a, InitStu(7,"w三"));
    InsertTail(a, InitStu(3,"a四"));
    InsertTail(a, InitStu(5,"b五"));
    Sort(a,CompareName);
    
    
    // printStu(c);
    printStu(Search(a,"a四"));

    FreeDArray(a,FreeStu);

    return 0;
}